<?php
 
	function smarty_block_rights($params, $content, &$smarty, &$repeat) {

		if (isset($params['right'])) {
		
			if($_SESSION["managerrights"]=="administrator") echo $content;
			else {
				$rights = explode("|", $params['right']);
				$yesshow = 0;
				foreach($rights as $k => $v) if($_SESSION["managerrights"][$v]==1) $yesshow = 1;
				if($yesshow) echo $content;
			}
		}
	}

?>